package com.itheima.sercice;

import com.itheima.pojo.OrderSetting;

import javax.servlet.http.HttpServletResponse;
import java.text.ParseException;
import java.util.List;

public interface OrderSettingService {

    /**
     * 文件上传
     * @param list
     * @return
     */
    void add(List<OrderSetting> list);

    /**
     * 根据日期修改可预约人数
     * @param orderSetting
     * @return
     */
    void editNumberByOrderDate(OrderSetting orderSetting);

    /**
     * 根据年月查询对应的预约设置信息
     * @param date
     * @return
     */
    List<OrderSetting> getOrderSettingByMonth(String date) throws Exception;

    /**
     * 模板下载
     * @param response
     * @return
     */
    void download(HttpServletResponse response ,String filename);
}
